package myExtend;

public class Son extends Father {
    private int age = 20;

    public void show() {
        //访问局部变量
        int age = 10;
        //访问本类变量
        int classAge = this.age;
        //访问父类变量
        int fatherAge = super.age;
        System.out.println(fatherAge);
        System.out.println(classAge);
        System.out.println(age);
    }

    @Override
    public void call() {
        System.out.println("i'm your son");
        super.call();
    }


}
